package cn.tedu.system.order.service;

import cn.tedu.system.base.response.JsonResult;
import cn.tedu.system.order.pojo.dto.OrderCreateRequestDto;
import cn.tedu.system.order.pojo.dto.OrderPageDto;
import cn.tedu.system.order.pojo.dto.OrderReviseDto;
import cn.tedu.system.order.pojo.dto.OrderStatusParam;
import cn.tedu.system.order.pojo.vo.OrderItemVO;
import cn.tedu.system.order.pojo.vo.OrderVO;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface OrderService {
    //用户创建订单
    void createOrder(OrderCreateRequestDto request, HttpSession session);
    //用户修改订单
    void reviseOrder(OrderReviseDto orderReviseDto, HttpSession session);
    //用户删除订单
    void delete(OrderReviseDto orderReviseDto, HttpSession session);
    //用户根据状态查询订单
    List<OrderVO> select(Integer status, HttpSession session);
    //用户查询所有订单
    List<OrderVO> selectAll(HttpSession session);

    //商家发货
    void shipments(OrderStatusParam orderParam, HttpSession session);
    //查订单总数
    int selTotal(HttpSession session);
    //查看订单详情
    List<OrderItemVO> selOrderDetail(Long orderId, HttpSession session);

    //商家查询订单功能  杨
    List<OrderVO> getOrders(Long merchantId, HttpSession session);

    //直播创建的订单
    void createLiveOrder(OrderCreateRequestDto request, HttpSession session);

//    List<OrderVO> merchantGetOrders(Long , HttpSession );
}
